<template>
	<view class="content">
		<view class="icon-box d-flex flex-column" v-if="FirstDashbord">
			<view class="d-flex flex-row span-20 j-sb">
				<view class="d-flex flex-column  j-start a-start">
					<text class="today_sales">今日销售总额(元)</text>
					<text class="today-sales_value mt-5">{{FirstDashbord.money}}</text>
				</view>
				<view class="">
					<image :src="`${getApp.globalData.baseImgUrl}/image/home/03@2x.png`" style="width: 235rpx; height: 235rpx;" mode="">
					</image>
				</view>
			</view>
			<view class="d-flex flex-row a-center span-20 j-start">
				<view class="flex-1 d-flex flex-column">
					<text class="font-md text-title">今日订单数</text>
					<text class="text-value">{{FirstDashbord.order}}</text>
				</view>
				<view class="d-flex flex-column" style="width: 235rpx;">
					<text class="font-md text-title">待发订单</text>
					<text class="text-value">{{FirstDashbord.new_await_ship}}</text>
				</view>
			</view>

		</view>

	</view>
</template>

<script>
	export default {
		props: {
			FirstDashbord: Object,
			showDataSelect: {
				type: Boolean,
				default: false
			}
		},
		computed: {},
		data() {
			return {
				date: '2024-04',
				fields: 'month', // 只选择年和月
				getApp:""
			}
		},
		created() {
			this.getApp = getApp()
		},
		methods: {
			bindDateChange: function(e) {
				this.date = e.detail.value
			}
		}
	}
</script>

<style scoped lang="scss">
	::v-deep .uni-input {
		height: 20px !important;
	}

	.xiaoshou:last-child {
		border: 0;
	}

	.icon-box {
		height: 348upx;
		.today_sales{
			width: 188upx;
			height: 58upx;
			font-size: 22upx;
			color: #fff;
			background: url("../../static/image/home/44@2x.png") no-repeat;
			background-size: 100% 100%;
			text-align: center;
			line-height: 48upx;
		}
		.today-sales_value{
			font-weight: bold;
			font-size: 77upx;
			color: #181C25;
			line-height: 46upx;
		}
		.text-title{
			color: #333;
			font-weight: 400;
			font-size: 26upx;
		}
		.text-value{
			font-weight: 400;
			font-size: 32upx;
			color: #181C25;
		}
	}
</style>